package com.jintoufs.dao.category;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.category.Category;

import java.util.List;
import java.util.Map;

public interface CategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> queryByParams(Map params);

    List<Category> queryByParam(Map params);

    Map<String, Object> save(Category category);

    List<Category> getByFilter(QueryFilters filters);

    Category queryByPrimaryKey(Integer id);

    List<Category> queryZtree();


}